<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .progress-container {
            width: 100%;
            background-color: #f3f3f3;
            border-radius: 5px;
            overflow: hidden;
            position: relative;
        }

        /* Styling for the progress bar itself */
        .progress-bar {
            width: 0%; /* Initial width */
            height: 20px;
            background-color: #4CAF50;
            transition: width 0.5s ease; /* Smooth transition for width changes */
        }

        /* Animation for the progress bar */
        @keyframes fillProgress {
            0% { width: 0%; }
            100% { width: 100%; }
        }

        /* Hover effect for the progress bar container */
        .progress-container:hover .progress-bar {
            animation: fillProgress 2s forwards; /* Apply the animation on hover */
        }

        .progress-container:not(:hover) .progress-bar {
            transition: width 20s ease; 
            width: 0%; 
        }
    </style>
</head>
<body>
    <div class="progress-container">
        <div class="progress-bar" id="progressBar"></div>
    </div>
</body>
</html>
